﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace yq.WebModel.File
{
    public class FolderEdit : yq.Model.Logic.FileList
    {
        private string _SuperiorName;

        /// <summary>
        /// 上级名称
        /// </summary>
        public string SuperiorName
        {
            get
            {
                if (string.IsNullOrEmpty(_SuperiorName))
                {
                    if (this.SuperiorId == "-1")
                    {
                        _SuperiorName ="主目录";
                    }
                    else
                    {
                        _SuperiorName = yq.Model.Logic.FileList.Load(this.SuperiorId).Ttile;
                    }
                }

                return _SuperiorName;
            }
        }

    }
}
